package Test5;

public class Benchi extends Car{
    private double price;
    private String model;

    public Benchi(String brand, double price, String model) {
        super(brand, "变速");
        this.price = price;
        this.model = model;
    }

    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    public String getModel() {
        return model;
    }
    public void setModel(String model) {
        this.model = model;
    }

    public void show(){
        System.out.println("汽车品牌为:"+super.getBrand()+" 功能为:"+super.getDrive()+" 价格为:"+this.getPrice()+" 型号为:"+this.getModel());
    }
}
